package 自定义异常实现登录;

import java.util.Scanner;

public class Text {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        Login login = new Login();
        String name = sc.nextLine();
        String key = sc.nextLine();
        try{
            login.Login(name,key);
        }catch (Login.NameExeprion e){
            e.printStackTrace();
        }catch (Login.PassWordExeprion e){
            e.printStackTrace();
        }
    }
}
